package com.open.rbac.model.vo.id;

import org.springframework.lang.NonNull;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.*;

/**
 * Id关系Vo
 *
 * @author Riche's
 * @since 2025/9/5
 */

@Schema(name = "IdentityRelVo", description = "Id关系Vo")
@ToString
@Getter
@Setter
@NoArgsConstructor
@RequiredArgsConstructor(staticName = "of")
public class IdentityRelVo {

    @NonNull
    @Schema(description = "id.No.")
    @NotBlank(message = "Id为必填项")
    private String identityId;

    @NonNull
    @Schema(description = "关联的id.No.")
    @NotBlank(message = "关联的Id为必填项")
    private String relIdentityId;

    @NonNull
    @Schema(description = "关系名称：父亲/母亲")
    @NotBlank(message = "关系名称为必填项")
    private String name;

    private String remark;

}
